<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>listProduct.jsp</title>
</head>
<body>

<a href="ProductController?action=addProduct">新增產品</a>
	<table border="1">
	<c:forEach items="${products }" var="p">
		<tr>
			<td>${p.p_number }</td>
			<td>${p.p_desc }</td>
			<td>${p.p_name }</td>
			<td>${p.p_class }</td>
			<td>${p.price }</td>
			<td>${p.selling }</td>
			<td>${p.stock_qty }</td>
			<td>${p.loan_qty }</td>
			<td>${p.usable }</td>
			<td>${p.maping }</td>
			<td>
			<a href="ProductController?p_number=${p.p_number}&action=edit">修改</a>
			</td>
			<td>
			<a href="ProductController?p_number=${p.p_number}&action=delete">刪除</a>
			</td>
		</tr>
	</c:forEach>
	</table>

</body>
</html>